package com.ruoyi.hospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.audit.HPatientAudit;
import com.ruoyi.hospital.domain.HPatient;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 患者管理mapper
 * @author liz
 * @date 2023-10-18 10:38
 */
public interface HPatientMapper extends BaseMapper<HPatient> {
    /**
     * 获取患者列表
     */
    public List<HPatient> getlist(HPatient patient);
    /**
     * 根据Id获取患者详情
     */
    public HPatient selectInfoById(Integer id);
    /**
     * 根据parentId获取患者报销信息
     */
    public List<HPatientAudit> selectPatientAuditByParentId(Integer id);

    List<HPatient> getlistAudit(HPatient patient);

    List<HPatient> selectHPatientAuditGain();

    void updateSettleType(@Param("inpatientNo") String inpatientNo,@Param("settleType") Integer settleType,@Param("settleName") String settleName);

    Integer selectCountAll();

    Integer selectReimburseAll();

    Integer selectTodayCount();

    Integer selectReimburseCount();


    List<HPatient> select7DayCount();

    public int updateStatusByInpatientNo(@Param("id") Integer id,@Param("settleType") String settleType, @Param("settleName")String settleName, @Param("pdfId")String pdfId);

}
